package com.slipper.system.area.service;

import com.slipper.core.transaction.ReadTransactional;
import com.slipper.system.area.bo.AreaBO;
import com.slipper.system.area.dao.AreaDao;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@ReadTransactional
public class AreaService {
    @Resource
    private AreaDao areaDao;

    public AreaBO queryBy(String id) {
        return this.areaDao.queryBy(id);
    }

    public List<AreaBO> queryList(AreaBO bo) {
        return this.areaDao.queryList(bo);
    }
}
